cmake_minimum_required(VERSION 3.15)
project(fuzzy-pid C)

set(CMAKE_C_STANDARD 99)

include_directories(${PROJECT_SOURCE_DIR}/include)

file(GLOB SRC_LIST ${CMAKE_CURRENT_LIST_DIR}/src/*.c)
add_executable(fuzzy-pid ${SRC_LIST})

target_link_libraries(fuzzy-pid m)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/build)

# 关闭详细编译日志（关键设置）
set(CMAKE_VERBOSE_MAKEFILE OFF)
# 禁用所有进度信息（如 [33%] Building...）
# set(CMAKE_RULE_MESSAGES OFF)
set(CMAKE_RULE_MESSAGES OFF)